package com.rdzn.mall.portal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rdzn.mall.center.entity.PmsProductCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: pms_product_category
 * @Author: jeecg-boot
 * @Date:   2020-08-27
 * @Version: V1.0
 */
@Data
@TableName("pms_product_category")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="pms_product_category对象", description="pms_product_category")
public class Category implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**上机分类的编号：0表示一级分类*/
	@Excel(name = "上机分类的编号：0表示一级分类", width = 15)
    @ApiModelProperty(value = "上机分类的编号：0表示一级分类")
    private Integer parentId;
	/**name*/
	@Excel(name = "name", width = 15)
    @ApiModelProperty(value = "name")
    private String name;
	/**分类级别：0->1级；1->2级*/
	@Excel(name = "分类级别：0->1级；1->2级", width = 15)
    @ApiModelProperty(value = "分类级别：0->1级；1->2级")
    private Integer level;
	/**productCount*/
	@Excel(name = "productCount", width = 15)
    @ApiModelProperty(value = "productCount")
    private Integer productCount;
	/**productUnit*/
	@Excel(name = "productUnit", width = 15)
    @ApiModelProperty(value = "productUnit")
    private String productUnit;
	/**是否显示在导航栏：0->不显示；1->显示*/
	@Excel(name = "是否显示在导航栏：0->不显示；1->显示", width = 15)
    @ApiModelProperty(value = "是否显示在导航栏：0->不显示；1->显示")
    private Integer navStatus;
	/**显示状态：0->不显示；1->显示*/
	@Excel(name = "显示状态：0->不显示；1->显示", width = 15)
    @ApiModelProperty(value = "显示状态：0->不显示；1->显示")
    private Integer showStatus;
	/**sort*/
	@Excel(name = "sort", width = 15)
    @ApiModelProperty(value = "sort")
    private Integer sort;
	/**图标*/
	@Excel(name = "图标", width = 15)
    @ApiModelProperty(value = "图标")
    private String icon;
	/**keywords*/
	@Excel(name = "keywords", width = 15)
    @ApiModelProperty(value = "keywords")
    private String keywords;
	/**描述*/
	@Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    private String description;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

	private List<PmsProductCategory> subCategoryList;
}
